import { createStore, createLogger } from 'vuex';
import timeline from './module/timeline';
import viewMode from './module/view_mode';
import panes from "./module/panes";

const debug = process.env.NODE_ENV !== 'production'

export default createStore({
    modules: {
        timeline,
        viewMode,
        panes
    },
    strict: debug,
    plugins: debug ? [createLogger()] : []
})
